package com.guogz.pic.sevice.dto;

import java.io.Serializable;

public class ErrorCode implements Serializable{
	
	private static final long serialVersionUID = -6369619437280693800L;
	
	private Integer code;
	private String message;
	
	public static ErrorCode UPLOAD_ERROR_REQUEST = new ErrorCode(501, "请求参数错误！");
	public static ErrorCode UPLOAD_ERROR_SERVER = new ErrorCode(502, "服务器端异常！");
	
	
	public ErrorCode() {
		super();
	}

	public ErrorCode(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	
}
